package com.xiaoh.dormitoryrepairreportbackend.model.dto.category;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 维修类别更新请求
 */
@Data
@Schema(description = "维修类别更新请求")
public class RepairCategoryUpdateRequest implements Serializable {

    @Schema(description = "类别ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类别ID不能为空")
    private Integer id;

    @Schema(description = "类别名称")
    private String categoryName;

    @Schema(description = "类别描述")
    private String description;

    @Schema(description = "是否启用(0:禁用, 1:启用)")
    private Integer isActive;

    private static final long serialVersionUID = 1L;
}
